home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / SchoolStat1.0.8 / SchoolStat™ / SchoolStat™.rsrc / TEXT_1080_Linear Regression.txt < prev    next >
Text File  |  1994-01-30  |  2KB  |  7 lines

  1. Linear Regression
  2.   This will calculate the simple linear regression relationship between two variables given a set of paired observations on the two variables. The samples must be equal sizes. The method of least squares is used, to describe the relationship between the two variables and to predict a value of the dependent variable, y, given a value of the independent variable, x.
  3.   Method: The method of least squares amounts to finding the slope (m) and intercept (c) of the line y = mx + c such that the sum of (yi - m xi - c)^2 taken over all data points is a minimum, where (xi, yi) i=1,‚Ķ,n denote the (paired) observations. It is usual practice to assume a model of the form:
  4.     y = a + bx + e, where the random errors, e, are assumed to be (approximately) normally distributed with mean zero and constant variance, s2. For this model, m and c are estimates of b and a respectively and an estimate of s2, is given by:
  5.       s2 = ‚àë(yi - mxi - c)^2 /(n-2).
  6.   Confidence intervals for a and b (at the level set in the Preferences dialog or overridden by the pop up at the bottom of the linear regression dialog box) are also presented. The Scatterplot option can also be used to calculate the linear regression equation also (and will place it on the plot). The Save Residuals check box near the top right will create a column of data in the spreadsheet with the residual values (magnitude of deviation from the linear regression equation closest value).
  7.   See the Statistics topic for instructions on selecting this test.